#pragma once

class CSettingDlg :public CDialogImpl<CSettingDlg>, public CWinDataExchange<CSettingDlg>
{
public:
    enum { IDD = IDD_DIALOG_SETTING };

    BEGIN_MSG_MAP(CSettingDlg)
        MESSAGE_HANDLER(WM_INITDIALOG, OnInitDialog)
        COMMAND_ID_HANDLER(IDOK, OnOK)
        COMMAND_ID_HANDLER(IDCANCEL, OnCancel)
    END_MSG_MAP()


    BEGIN_DDX_MAP(CSettingDlg)
        DDX_INT(IDC_EDIT_MAX_NUM, m_nMax_Num )
    END_DDX_MAP()


    LRESULT OnInitDialog(UINT /*uMsg*/, WPARAM /*wParam*/, LPARAM /*lParam*/, BOOL& /*bHandled*/);
    LRESULT OnOK(WORD /*wNotifyCode*/, WORD wID, HWND /*hWndCtl*/, BOOL& /*bHandled*/);
    LRESULT OnCancel(WORD /*wNotifyCode*/, WORD wID, HWND /*hWndCtl*/, BOOL& /*bHandled*/);

protected:
    int     m_nMax_Num;

};
